package com.hb.B_面向对象.B_接口

fun main() {
    var man = Man()
//    man.didi()
//    man.eat()

    var taiJian = TaiJian()
    var house = listOf<Human>(man, taiJian)
    for(p in house){
        if (p is Human){
            p.eat()
        }
    }

}